package com.jt.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;//lombok对编译期有效
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain=true)
@TableName("demo_user")//与数据表关联

public class User implements Serializable{
 @TableId(type=IdType.AUTO)//标识主键，主键自增
 private Integer id;
 //@TableField("name")//对象属性与表中字段关联
 private String name;
 private Integer age;
 private String sex;
}
